<!--
 * @Description: 
 * @Author: xuqi
 * @Github: https://github.com/knight-peter
 * @LastEditors: xuqi
 -->
<title>user管理--新增/修改</title>

<div class="layui-fluid">
  <form class="layui-form" lay-filter="formSet">
    <div class="layui-row layui-col-space10 layui-form-item" id="popupViewOrder"></div>
    <script id="popupTplOrder" type="text/html">
      <div class="layui-row layui-col-space10 layui-form-item">
        <div class="layui-col-md6">
          <label for="" class="layui-form-label">用户ID</label>
          <div class="layui-input-block">
            <input type="text" name="user_id" value="{{d.user_id||''}}" class="layui-input" placeholder="请输入" autocomplete="off">
          </div>
        </div>
        <div class="layui-col-md6">
          <label for="" class="layui-form-label">类型</label>
          <div class="layui-input-block">
            <select name="type" id="">
              <option value="">请选择</option>
              <option value="parts" {{d.type==='parts'?'selected':''}}>配件</option>
              <option value="product" {{d.type==='product'?'selected':''}}>成品</option>
            </select>
          </div>
        </div>
        <div class="layui-col-md6">
          <label for="" class="layui-form-label">数量</label>
          <div class="layui-input-block">
            <input type="number" name="count" value="{{d.count||''}}" class="layui-input" placeholder="请输入" autocomplete="off">
          </div>
        </div>
        <div class="layui-col-md6">
          <label for="" class="layui-form-label layui-form-label--lg">总金额（元）</label>
          <div class="layui-input-block">
            <input type="number" name="amount" value="{{d.amount||''}}" class="layui-input" placeholder="请输入" autocomplete="off">
          </div>
        </div>
        <div class="layui-col-md6">
          <label for="" class="layui-form-label">收货人姓名</label>
          <div class="layui-input-block">
            <input type="text" name="receiver_name" value="{{d.receiver_name||''}}" class="layui-input" placeholder="请输入" autocomplete="off">
          </div>
        </div>
        <div class="layui-col-md6">
          <label for="" class="layui-form-label">收货人手机</label>
          <div class="layui-input-block">
            <input type="text" name="receiver_mobile" value="{{d.receiver_mobile||''}}" class="layui-input" placeholder="请输入" autocomplete="off">
          </div>
        </div>
        <div class="layui-col-md6">
          <label for="" class="layui-form-label">收货地区</label>
          <div class="layui-input-block">
            <input type="text" autocomplete="on" class="layui-input" id="city-picker-order" name="area_name" readonly="readonly" data-toggle="city-picker" placeholder="请选择" lay-verify="required">
          </div>
        </div>
        <div class="layui-col-md6">
          <label for="" class="layui-form-label">详细地址</label>
          <div class="layui-input-block">
            <input type="text" name="address" value="{{d.receiver_address||''}}" class="layui-input" placeholder="请输入" autocomplete="off" lay-verify="required">
          </div>
        </div>
      </div>
    </script>
    <div class="layui-form-item m-form-footer g-hide">
      <button type="submit" lay-submit lay-filter="submitBtnAdd" class="layui-btn">确定</button>
    </div>
  </form>
</div>